/*
* $Id: EditItem.h lexus $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _EDIT_ITEM_H_
#define _EDIT_ITEM_H_

#include "EditorItem.h"

class CDrawControl;

class CEditItem : public CEditorItem, public editItem
{
protected:
	CSize m_sizeHeader;
	std::tstring m_strValueEdit;
	CDrawControl* m_control;
protected:
	virtual void Resize();
	CEditItem(const std::tstring& strName, int nId, const std::tstring& strValue = _T(""));
public:
	CEditItem(const std::tstring& strName, int nId, editItem::typeEdit type, const std::tstring& strValue = _T(""));
	virtual ~CEditItem();
public:
	virtual void Paint(CDC* dc);
	virtual void Activate(bool bActive);
	virtual bool WillActive();
	virtual bool ProcessKey(unsigned int nChar, byte stateSysKey);
	virtual bool ProcessMouse(unsigned int nButton, CPoint pos, int param);
	virtual std::tstring GetValue();
};

#endif/*_EDIT_ITEM_H_*/